Skip to content

[3.15] Docs: Fix built-in function __self__ attribute descriptions (GH-159653) - #159710

Merged
ZeroIntensity merged 1 commit into
python:3.15from
miss-islington:backport-415ebff-3.15
Oct 19, 2026
Merged

ZeroIntensity merged 1 commit into
python:3.15from
miss-islington:backport-415ebff-3.15

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

Since PEP 3121, functions in C modules are bound to their module, so
their self is the module object. The inspect.isbuiltin docstring,
the inspect attribute table and the data model reference still say
it is None, as it was in Python 2. Describe it as the module object
the function was defined in, or None.
(cherry picked from commit 415ebff)

Co-authored-by: crypt0lith 118923461+crypt0lith@users.noreply.github.com

…GH-159653)

Since PEP 3121, functions in C modules are bound to their module, so
their __self__ is the module object. The inspect.isbuiltin docstring,
the inspect attribute table and the data model reference still say
it is None, as it was in Python 2. Describe it as the module object
the function was defined in, or None.
(cherry picked from commit 415ebffc47e8303d61cf97faf4ddb474334d736d)

Co-authored-by: crypt0lith <118923461+crypt0lith@users.noreply.github.com>
@read-the-docs-community

Copy link
Copy Markdown

@ZeroIntensity
ZeroIntensity merged commit 6412d30 into python:3.15 Oct 19, 2026
60 checks passed
@miss-islington
miss-islington deleted the backport-415ebff-3.15 branch October 19, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants